﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Datastructuren2.Hoofdstuk1
{
    public class Opdracht1
    {
        // De herhalingsfrequentie = 1
        public void calculateForLoop1(int n)
        {
            for (int i = n - 1; i < n; i++)
            {
                Console.WriteLine(i);
            }
        }
        
        // De herhalingsfrequentie = n^2-i
        public void calculateForLoop2(int n)
        {
            int counter = 0;
            for (int i = n - 1; i < Math.Pow(n, 2); i++)
            {
                counter++;
                Console.WriteLine(counter + ": " + i);
            }
        }

        // De herhalingsfrequentie = 0
        public void calculateForLoop3(int n)
        {
            for (int i = n; i < n; i++)
            {
                Console.WriteLine(i);
            }
        }

        // De herhalingsfrequentie = n
        public void calculeWhileLoop(int n)
        {
            int i = 0;
            int[] a = new int[n];
            while (i < n)
            {
                a[i] = 0;
            }
        }
    }
}
